<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>05_表格</title>
</head>
<body>
    <table border="1px" style="border-collapse: collapse;">
        <caption>演员</caption>
        <tr>
            <th>id</th>
            <th>姓名</th>
            <th>电视剧</th>
            <th>综艺</th>
        </tr>
        <!-- table row 表格行-->
        <tr>
            <!--table data 单元格，存数据的地方-->
            <td>1</td>
            <td>迪丽热巴</td>
            <td>枭起青壤</td>
            <td>极限挑战</td>
        </tr>
        <tr>
            <td>2</td>
            <td>迪丽热巴</td>
            <td>慕胥辞</td>
            <td>开始推理吧</td>
        </tr>
    </table>

    <hr>
    <table border="1px" style="border-collapse: collapse;">
        <tr>
            <td>1-1</td>
            <!--跨列，横着合并-->
            <td colspan="3">1-2</td>
        </tr>
        <tr>
            <!--跨行，竖着合并-->
            <td rowspan="3">2-1</td>
            <td>2-2</td>
            <td>2-3</td>
            <td>2-4</td>
        </tr>
        <tr>

            <td>3-2</td>
            <td>3-3</td>
            <td>3-4</td>
        </tr>
        <tr>

            <td>4-2</td>
            <td>4-3</td>
            <td>4-4</td>
        </tr>
    </table>

    <table border="1px" style="border-collapse: collapse;">
        <caption>购物车</caption>
        <tr>
            <th>商品编号</th>
            <th>商品名称</th>
            <th>商品价格</th>
        </tr>
        <tr>
            <td style="text-align: center;">1</td>
            <td>荣耀x60</td>
            <td>2601</td>
        </tr>
        <tr>
            <td style="text-align: center;">2</td>
            <td>三折叠，怎么都有面</td>
            <td>27399</td>
        </tr>
        <tr>
            <td style="text-align: center;">总价</td>
            <td colspan="2">30000</td>
        </tr>
    </table>
</body>
</html>